<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>商品列表</h1>
    <style>
        body{
            background-color: #F5F5F5;
        }
        .goods{
            overflow: hidden;
            width: 800px;
            margin: 50px  auto;
            /* background-color: pink; */
            text-align: center;
        }
        .goods a{
            float: left;
            width: 24%;
            background-color: #ffffff;
            margin: 0 0.5%;
            text-decoration: none;
            padding: 10px 0;
            margin-bottom: 10px;
        }
        .goods a img{
            height: 160px;
        }
        .goods a h2{
            font-size: 14px;
            font-weight: normal;
            color: #000000;
        }
        .goods a p{
            font-size: 12px;
            color: #b6b4b4;
        }
        .goods a span{
            font-size: 14px;
            color: red;
        }
        .goods a i{
            font-size: 12px;
            color: #b6b4b4;
            font-style: normal;
            text-decoration: line-through;
        }
    </style>
    <div class="goods">
        <a href="#">
            <img src="./imgs/phone.jpg" alt="">
            <h2>小米手机标题</h2>
            <p>辅助信心，像素200万，电量足</p>
            <span>2099元起</span>
            <i>2999元</i>
        </a>
        <a href="#">
            <img src="./imgs/phone.jpg" alt="">
            <h2>小米手机标题</h2>
            <p>辅助信心，像素200万，电量足</p>
            <span>2099元起</span>
            <i>2999元</i>
        </a>
        <a href="#">
            <img src="./imgs/phone.jpg" alt="">
            <h2>小米手机标题</h2>
            <p>辅助信心，像素200万，电量足</p>
            <span>2099元起</span>
            <i>2999元</i>
        </a>
        <a href="#">
            <img src="./imgs/phone.jpg" alt="">
            <h2>小米手机标题</h2>
            <p>辅助信心，像素200万，电量足</p>
            <span>2099元起</span>
            <i>2999元</i>
        </a>
        <a href="#">
            <img src="./imgs/phone.jpg" alt="">
            <h2>小米手机标题</h2>
            <p>辅助信心，像素200万，电量足</p>
            <span>2099元起</span>
            <i>2999元</i>
        </a>
        <a href="#">
            <img src="./imgs/phone.jpg" alt="">
            <h2>小米手机标题</h2>
            <p>辅助信心，像素200万，电量足</p>
            <span>2099元起</span>
            <i>2999元</i>
        </a>
        <a href="#">
            <img src="./imgs/phone.jpg" alt="">
            <h2>小米手机标题</h2>
            <p>辅助信心，像素200万，电量足</p>
            <span>2099元起</span>
            <i>2999元</i>
        </a>
        <a href="#">
            <img src="./imgs/phone.jpg" alt="">
            <h2>小米手机标题</h2>
            <p>辅助信心，像素200万，电量足</p>
            <span>2099元起</span>
            <i>2999元</i>
        </a>
        
    </div>
</body>
</html>